import 'package:flutter/material.dart';

class pageViewBulider extends StatefulWidget {
  const pageViewBulider({super.key});

  @override
  State<pageViewBulider> createState() => _pageViewBuliderState();
}

class _pageViewBuliderState extends State<pageViewBulider> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(title: Text('PageViewBuilder')),
      body: PageView.builder(
        scrollDirection: Axis.vertical,
        itemCount: 10,
        itemBuilder: (content, index) {
          return Center(
            child: Text(
              '第${index + 1}页',
              style: Theme.of(context).textTheme.headlineMedium,
            ),
          );
        },
      ),
    );
  }
}
